<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>历史申请</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body><!-- 
	<ul class="nav nav-tabs">
		<shiro:hasPermission name="oa:workflow:leave:edit"><li><a href="${ctx}/oa/workflow/leave/form">请假申请</a></li></shiro:hasPermission>
		<shiro:hasPermission name="oa:workflow:leave:audit"><li><a href="${ctx}/oa/workflow/leave/list/task">请假办理</a></li></shiro:hasPermission>
		<li><a href="${ctx}/oa/workflow/leave/list/running">正在审批</a></li>
		<li class="active"><a href="${ctx}/oa/workflow/leave/list/finished">历史申请</a></li>
	</ul> -->
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead>
			<tr>
				<th>所属部门</th>
			<th>信贷人员</th>
			<th>信贷类别</th>
			<th>开始日期</th>
			<th>结束日期</th>
			<th>贷款金额</th>
			<th>贷款余额</th>
			<th>应收利息</th>
			<th>实收利息</th>
			<th>未收利息</th>
				<th>流程启动时间</th>
				<th>流程结束时间</th>
				<th>流程结束原因</th>
				<th>流程版本</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${loans }" var="loan">
				<c:set var="hpi" value="${loan.historicProcessInstance }" />
				<tr id="${loan.id }" tid="${task.id }">
					<td><a href="${ctx}/bls/loan/form?id=${loan.id}">${loan.office.name}</a></td>
					<td>${loan.officerid}</td>
					<td><c:if test="${loan.type eq '1'}">农户</c:if> <c:if
							test="${loan.type eq '2'}">个体工商户</c:if> <c:if
							test="${loan.type eq '3'}">城镇自然人</c:if> <c:if
							test="${loan.type eq '4'}">小企业</c:if> <c:if
							test="${loan.type eq '5'}">其他</c:if></td>
					<td>${loan.startdate}</td>
					<td>${loan.enddate}</td>
					<td>${loan.amount}</td>
					<td>${loan.balance}</td>
					<td>${loan.interes}</td>
					<td>${loan.interestactual}</td>
					<td>${loan.interestbalance}</td>
					<td>${hpi.startTime }</td>
					<td>${hpi.endTime }</td>
					<td>${hpi.deleteReason }</td>
					<td><b title='流程版本号'>V: ${loan.processDefinition.version }</b></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
</body>
</html>
